home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / utildsk / plugged.lha / Plugged / Install_Plugged next >
Text File  |  1996-05-11  |  5KB  |  215 lines

  1. ; Install script for Plugged
  2.  
  3. (set Need3 "\nPlugged need at least OS3.0")
  4. (if (< (/ (getversion) 65536) 39)
  5.   (abort Need3)
  6. )
  7.  
  8. (set CatHelp "You can have plugged localized to a particular language.")
  9. (set POPKEYHelp "With this hotkey you can popup plugged main window.")
  10. (set PROGKEYHelp "With this hotkey you can open the program window.")
  11. (set EDITKEYHelp "With this hotkey you can open the Edit CD window.")
  12. (set CTRKEYHelp "With this hotkey you can open the control panel.")
  13. (set ASKDIRHelp "If you install Plugged in SYS:WBStartup (default), it will be launched automatically at every startup.\nIf you want only to test Plugged, copy it in another place, changing the destination directory")
  14. (set GUIDEHelp "This is the doc of Plugged in .guide format")
  15. (set CONVERTHelp "Plugged uses a format to save CD infos different from the one used by MCDPlayer.\nIf you have several CD defined in MCDPlayer, you would like to convert them in Plugged format.\nIn this case, simply select the directory where all these file are stored and they will be converted automatically.")
  16.  
  17. (set MySou (pathonly @icon) )
  18.  
  19. (set vernum (getversion (tackon MySou "Plugged") ) )
  20. (set ver (/ vernum 65536))
  21. (set rev (- vernum (* ver 65536) ) )
  22. (set Vers (cat ver "." rev))
  23.  
  24. (welcome)
  25.  
  26. (message (cat "Welcome to Plugged " Vers ) " Installer script\n\n\n\n© 1996 R.Ferorelli")
  27.  
  28. (set CompleteDest
  29.    (askdir
  30.       (prompt "\nSelect a path where to install Plugged main file")
  31.       (help ASKDIRHelp)
  32.       (default "SYS:WBStartup")
  33.    )
  34. )
  35.  
  36. (copyfiles
  37.    (prompt "Coping Plugged")
  38.    (source MySou)
  39.    (infos)
  40.    (dest CompleteDest)
  41.    (choices "Plugged")
  42. )
  43.  
  44. ; Guide file.
  45. ; *************************
  46. (set GuideDest
  47.    (askdir
  48.       (prompt "\nSelect a directory where to install Plugged.guide file.\n")
  49.       (help @askdir-help)
  50.       (default "AMIGAGUIDE:")
  51.    )
  52. )
  53. (copyfiles
  54.    (prompt "Coping Plugged.guide")
  55.    (help GUIDEHelp)
  56.    (source MySou)
  57.    (infos)
  58.    (dest GuideDest)
  59.    (confirm)
  60.    (choices "Plugged.guide")
  61. )
  62.  
  63. (set LangBit
  64.    (askoptions
  65.       (prompt "\nDo yo want to install languages")
  66.       (help CatHelp)
  67.       (choices "italiano")
  68.       (default 1)
  69.    )
  70. )
  71. (if (IN LangBit 0)
  72.    (copyfiles
  73.       (prompt "Coping the catalog 'italiano'")
  74.       (help @copyfiles-help)
  75.       (source (tackon MySou "catalogs/italiano/plugged.catalog") )
  76.       (dest "locale:catalogs/italiano/")
  77.    )
  78. )
  79.  
  80. (set DestName (tackon CompleteDest "Plugged"))
  81.  
  82. (Set Hotkey (askstring
  83.             (prompt "Insert Hotkey for Main interface popup")
  84.             (default "control shift c")
  85.             (help POPKEYHelp)
  86.         )
  87. )
  88. (tooltype
  89.    (settooltype "CX_POPKEY" HotKey)
  90.    (dest DestName)
  91. )
  92.  
  93. (Set Progkey (askstring
  94.             (prompt "Insert Hotkey for program window popup")
  95.             (default "control shift p")
  96.             (help PROGKEYHelp)
  97.         )
  98. )
  99. (tooltype
  100.    (settooltype "PROGKEY" ProgKey)
  101.    (dest DestName)
  102. )
  103.  
  104. (Set Editkey (askstring
  105.             (prompt "Insert Hotkey for Edit window popup")
  106.             (default "control shift e")
  107.             (help EDITKEYHelp)
  108.         )
  109. )
  110. (tooltype
  111.    (settooltype "EDITKEY" EditKey)
  112.    (dest DestName)
  113. )
  114.  
  115. (Set Ctrkey (askstring
  116.             (prompt "Insert Hotkey for control panel popup")
  117.             (default "control shift d")
  118.             (help CTRKEYHelp)
  119.         )
  120. )
  121. (tooltype
  122.    (settooltype "CTRKEY" CtrKey)
  123.    (dest DestName)
  124. )
  125.  
  126. (set POPBit
  127.    (askbool
  128.       (prompt "\nDo you want interface window to popup at startup?")
  129.       (help "This affects the CX_POPUP tooltype.")
  130.       (default 0)
  131.    )
  132. )
  133.  
  134. (if (= POPBit 1)
  135.    (tooltype
  136.       (settooltype "CX_POPUP" "YES")
  137.       (dest DestName)
  138.    )
  139. )
  140.  
  141. (if (= POPBit 0)
  142.    (tooltype
  143.       (settooltype "CX_POPUP" "NO")
  144.       (dest DestName)
  145.    )
  146. )
  147.  
  148. (set Direct
  149.    (askdir
  150.       (prompt "\nSelect a path. A directory called SONGS will be created here.\n(The CD description will be stored here.)")
  151.       (help DIRHelp)
  152.       (default "SYS:")
  153.    )
  154. )
  155.  
  156. (makedir (tackon Direct "SONGS") (infos))
  157.  
  158. (tooltype
  159.    (settooltype "DIRECTORY" (tackon Direct "SONGS"))
  160.    (dest DestName)
  161. )
  162.  
  163. (set ConvertBit
  164.    (askbool
  165.       (prompt "\nDo you want to convert MCDPlayer CDs to Plugged format?")
  166.       (help CONVERTHelp)
  167.       (default 0)
  168.    )
  169. )
  170.  
  171. (if (= ConvertBit 1)
  172.    (
  173.       (set MCDPDir
  174.          (askdir
  175.             (prompt "\nSelect the directory where all the MCDPlayer CDs are stored.")
  176.             (help CONVERTHelp)
  177.             (default "SYS:")
  178.          )
  179.       )
  180.       (set Cmd
  181.          (cat (tackon MySou "MCDP2Plugged ") MCDPDir " " (tackon Direct "SONGS"))
  182.       )
  183.       (run Cmd
  184.          (prompt "Converting files...")
  185.          (help "None")
  186.       )
  187.    )
  188. )
  189.  
  190. (set CopySongsBit
  191.    (askbool
  192.       (prompt "\nDo you want to install some CD description?")
  193.       (help "These description includes disk from:\nAlanis Morrisette,The Cure,Offspring,Nirvana,R.E.M.,Litfiba,Pino Daniele,De Gregori,Run DMC,Madredeus,Pink Floyd")
  194.       (default 0)
  195.    )
  196. )
  197.  
  198. (if (= CopySongsBit 1)
  199.    (
  200.       (copyfiles
  201.          (prompt "Coping CD descriptions")
  202.          (help @copyfiles-help)
  203.          (source (tackon MySou "Songs"))
  204.          (all)
  205.          (dest (tackon Direct "SONGS"))
  206.       )
  207.    )
  208. )
  209.  
  210. (message "You can run the program and change other parameters directly in it.\nPlease read documentation for other options")
  211.  
  212. (set @default-dest CompleteDest )
  213.         (exit)
  214.  
  215.